﻿@{
    ViewBag.Title = "ShowCategories";
    Layout = null;
}
<div class="defaultTitle cate-menu-title">
        <span>Danh mục sản phẩm</span>
    </div>
    <div class="defaultContent cate-menu-content">
        <ul>
            @{ string first = "first";
               foreach (var cate in ViewBag.categoryList2)
               {
                   ViewBag.id = cate.Key;
                   <li class="level0 level0-162361 @first">
                       <a href='javascript:;' onclick="javascript:loadShow(@ViewBag.id,'')">
                        <span>
                            @ViewBag.categoryList2Name[@cate.Key]</span></a>
                        <ul style="display: block;">
                            @{ string firstGroup = "first";
                               foreach (var group in cate.Value)
                               {
                                    <li class="level1 level1-168526 @firstGroup">
                                        @*<a href='/Main/show?id=@cate.Key&group=@group'>
                                        <span>@group</span>
                                        </a>*@
                                        
                                        <a href='javascript:;' onclick="javascript:loadShow(@ViewBag.id,'@group')">
                                        <span>@group</span>
                                        </a>
                                        <ul style="display: block;">
                                            
                                        </ul>
                                    </li>
                                   firstGroup = " ";
                               }
                            }                                
                        </ul>
                    </li>
                               first = "";
               }                                       
             }
                
        </ul>
    </div>

<div class="defaultFooter cate-menu-footer"><div></div></div>